﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditAwardLevel.aspx.cs" Inherits="Web.admin.CompetitionManage.EditAwardLevel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>编辑获奖等级</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/function.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function CheckEmpty() {
            var emptyNmber = 0;
            $(".txtInput").each(function () {
                if ($(this).val() == "")
                    emptyNmber = emptyNmber + 1;
            });
            if (emptyNmber > 0) {
                alert("所有项为必填项，不允许为空");
                return false;
            }
            else
                return true;
        };

        function ClearToEmpty() {
            $(".txtInput").each(function () {
                $(this).val("");
            });
            return false;
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" /></td>
                        <td ><img src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>添加获奖等级</span></td>
                        <td><img src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation">首页&gt;竞赛设置&gt;添加获奖等级
            <div style="float:right; margin-right:5px;">
                    <a href="AwardLevel.aspx">返回竞赛等级列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>获奖名称：</th>
                        <td>
                            <asp:TextBox ID="txtName" CssClass="txtInput" runat="server"></asp:TextBox><label>*</label>
                            <input id="txtAwaId" type="hidden" runat="server" value="" />
                        </td>
                    </tr>
                    <tr>
                        <th>获奖类型: </th>
                        <td>
                            <asp:TextBox ID="TextType" CssClass="txtInput" runat="server"></asp:TextBox><label>*</label>
                            
                        </td>
                    </tr>
                    <tr>
                        <th>获奖级别：</th>
                        <td>
                            <asp:DropDownList ID="leval_list" CssClass="txtInput" runat="server">
                                <asp:ListItem Value="校级">校级</asp:ListItem>
                                <asp:ListItem Value="省级">省级</asp:ListItem>
                                <asp:ListItem Value="国家级">国家级</asp:ListItem>
                                <asp:ListItem Value="国际级">国际级</asp:ListItem>
                                <asp:ListItem Value="所有">所有</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th>是否显示: </th>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem Selected="True" Value="true">显示</asp:ListItem>
                                <asp:ListItem Value="false">不显示</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr> 
                    <tr>
                    <td><asp:Button ID="ButtonOK" OnClientClick="return CheckEmpty();" runat="server" 
                            Text="保存" onclick="ButtonOK_Click" CssClass="btn_submit" Height="33px" 
                            Width="75px"/></td>
                     <td><asp:Button ID="Button2" OnClientClick="return ClearToEmpty();" runat="server" Text="重置" CssClass="btn_reset" /></td>
                     </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
